import http from '@/common/http.js'

export async function getCarnumber(data) { //根据车牌查询车主信息
	return await http({
		url: '/ocr',
		method: 'POST',
		data: data
	})
}
export async function getPhonebycar(data) { //根据车牌号获取手机号
	return await http({
		url: '/ocr',
		method: 'GET',
		data: data
	})
}
export async function checkDuplicateName(data) { //查重名
	return await http({
		url: '/ocr/checkDuplicateName/' + data.type,
		method: 'GET',
		data: data
	})
}

export async function getCallnumber() { //获取用户点击了打电话
	return await http({
		url: '/ocr/call',
		method: 'GET'
	})
}

export async function getlogstats(data) { //统计用户
	return await http({
		url: `/apiuser/getlogstats/${data.type}`,
		method: 'GET',
		data: data
	})
}